package org.popupcommunication.controller;



import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;

import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.context.request.WebRequest;

@Controller
public class LoginController {
	@RequestMapping(value = { "/login", "/login.html" })
	public String showIndex(WebRequest webRequest,Model model) {
//		Object lastException = webRequest.getAttribute(WebAttributes.AUTHENTICATION_EXCEPTION, WebRequest.SCOPE_SESSION);
//        if (lastException != null) {
//            if (lastException instanceof BadCredentialsException) {
//            	model.addAttribute("error", "Login ou mot de passe erroné");
//            }
//        }		
		return "login";
	}
	

}